package com.example.cunion.mapper;

import com.example.cunion.entity.Complaint;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.HashMap;
import java.util.List;

/**
* @author Aero
* @description 针对表【complaint(投诉表)】的数据库操作Mapper
* @createDate 2023-10-22 22:37:28
* @Entity com.example.cunion.entity.Complaint
*/
public interface ComplaintMapper extends BaseMapper<Complaint> {

    List<HashMap> searchUnCheckFirstComplaintByPage(HashMap map);

    List<HashMap> searchUnCheckComplaintByPage(HashMap map);

    Integer agreeComplaint(String id);

    Integer rejectComplaint(String id);

    Integer addComplaint(HashMap map);

    String searchUserIdByComplaintId(String id);

    String searchShopIdByComplaintId(String id);

    Integer updateComplaintStatus(HashMap map);
}




